package com.digitalchina.lxnsy.sy.all;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;
import com.digitalchina.lxnsy.sy.biaozhun.OperationDetailsActivity;
import com.digitalchina.lxnsy.sy.biaozhun.UseStandardActivity;
import com.digitalchina.lxnsy.sy.bingsiwuhaihua.DeadRecordActivity;
import com.digitalchina.lxnsy.sy.bingsiwuhaihua.ViewDeadRecordActivity;
import com.digitalchina.lxnsy.sy.caijing.EjaculationsRecordActivity;
import com.digitalchina.lxnsy.sy.caijing.ViewEjaculationsRecordActivity;
import com.digitalchina.lxnsy.sy.changao.LambingRecordActivity;
import com.digitalchina.lxnsy.sy.changao.LambingRecordDetailsActivity;
import com.digitalchina.lxnsy.sy.jibingzhiliao.DiseaseRecordActivity;
import com.digitalchina.lxnsy.sy.jibingzhiliao.ViewDiseaseRecordActivity;
import com.digitalchina.lxnsy.sy.lichang.LeaveRecordActivity;
import com.digitalchina.lxnsy.sy.lichang.ViewLeaveRecordActivity;
import com.digitalchina.lxnsy.sy.peizhongjilu.BreedingRecordActivity;
import com.digitalchina.lxnsy.sy.peizhongjilu.ViewBreedingRecordActivity;
import com.digitalchina.lxnsy.sy.shengzhang.GrowthRecordActivity;
import com.digitalchina.lxnsy.sy.shengzhang.ViewGrowthRecordActivity;
import com.digitalchina.lxnsy.sy.shouyunqueren.DetailsPregnancyRecordActivity;
import com.digitalchina.lxnsy.sy.shouyunqueren.PregnancyConfirmationRecordActivity;
import com.digitalchina.lxnsy.sy.siwei.FeedingRecordDetailsActivity;
import com.digitalchina.lxnsy.sy.siwei.FeedingRecordsActivity;
import com.digitalchina.lxnsy.sy.yimiaojiezhong.VaccinesRecordActivity;
import com.digitalchina.lxnsy.sy.yimiaojiezhong.ViewVaccinesRecordActivity;
import com.digitalchina.lxnsy.sy.zhuanquan.ChangeCircleRecordActivity;
import com.digitalchina.lxnsy.sy.zhuanquan.ViewChangeCircleActivity;


public class SdManagementDetailActivity extends BaseHtmlActivity {
    private int tag = 0;

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);

        loadUrl("sdManagementDetail");
        setTitle("标准化养殖详情");
        setRightText("使用标准");
    }



    @Override
    public void rightOnClick() {
        go(UseStandardActivity.class);





    }


    public class JsApi {


        @JavascriptInterface
        public void warningDetails(Object msg) {//预警
            go(WarningDetailsActivity.class);

        }


        @JavascriptInterface
        public void operationDetails(Object msg) {//
            go(OperationDetailsActivity.class);

        }






        @JavascriptInterface
        public void feedingRecords(Object msg) {//饲喂记录
            go(FeedingRecordsActivity.class);

        }
        @JavascriptInterface
        public void growthRecord(Object msg) {//生长记录
            go(GrowthRecordActivity.class);

        }
        @JavascriptInterface
        public void changeCircleRecord(Object msg) {//转圈记录
            go(ChangeCircleRecordActivity.class);

        }

        @JavascriptInterface
        public void leaveRecord(Object msg) {//离场记录
            go(LeaveRecordActivity.class);

        }

        @JavascriptInterface
        public void diseaseRecord(Object msg) {//疾病治疗记录
            go(DiseaseRecordActivity.class);

        }

        @JavascriptInterface
        public void vaccinesRecord(Object msg) {//疫苗接种记录
            go(VaccinesRecordActivity.class);

        }

        @JavascriptInterface
        public void pregnancyConfirmationRecord(Object msg) {//受孕确认记录
            go(PregnancyConfirmationRecordActivity.class);

        }



        @JavascriptInterface
        public void breedingRecord(Object msg) {//配种记录
            go(BreedingRecordActivity.class);

        }

        @JavascriptInterface
        public void deadRecord(Object msg) {//病死无害化处理记录
            go(DeadRecordActivity.class);

        }


        @JavascriptInterface
        public void lambingRecord(Object msg) {//产羔记录
           go(LambingRecordActivity.class);

        }

        @JavascriptInterface
        public void ejaculationsRecord(Object msg) {//采精记录
            go(EjaculationsRecordActivity.class);

        }









        //操作记录


        @JavascriptInterface
        public void lambingRecordDetails(Object msg) {//产羔记录
            go(LambingRecordDetailsActivity.class);

        }

        @JavascriptInterface
        public void viewEjaculationsRecord(Object msg) {//采精记录
            go(ViewEjaculationsRecordActivity.class);

        }

        @JavascriptInterface
        public void feedingRecordDetails(Object msg) {//饲喂记录
            go(FeedingRecordDetailsActivity.class);

        }

        @JavascriptInterface
        public void detailsPregnancyRecord(Object msg) {//受孕确认记录
            go(DetailsPregnancyRecordActivity.class);

        }

        @JavascriptInterface
        public void viewGrowthRecord(Object msg) {//生长记录
            go(ViewGrowthRecordActivity.class);

        }
        @JavascriptInterface
        public void viewChangeCircle(Object msg) {//转圈记录
            go(ViewChangeCircleActivity.class);

        }
        @JavascriptInterface
        public void viewLeaveRecord(Object msg) {//离场记录
            go(ViewLeaveRecordActivity.class);

        }
        @JavascriptInterface
        public void viewDiseaseRecord(Object msg) {//疾病诊疗记录
            go(ViewDiseaseRecordActivity.class);

        }
        @JavascriptInterface
        public void viewVaccinesRecord(Object msg) {//疫苗接种记录
            go(ViewVaccinesRecordActivity.class);

        }
        @JavascriptInterface
        public void viewBreedingRecord(Object msg) {//配种记录
            go(ViewBreedingRecordActivity.class);

        }
        @JavascriptInterface
        public void viewDeadRecord(Object msg) {//病死无害化处理记录
            go(ViewDeadRecordActivity.class);

        }










    }
}
